/**
 * 测试用例相关请求
 */
import request from "./request";


let api = '/api/manage/case/'

export const addCase = data => {
return request({
  method: 'POST',
  url: api,
  data
})
};

export const updateCase = data => {
return request({
  method: 'PATCH',
  url: api,
  data
})
}

export const deleteCase = params => {
return request({
  method: 'DELETE',
  url: api,
  params
})
}

export const queryCase = params => {
return request({
  method: 'GET',
  url: api,
  params
})
}

export const addConnect = data => {
return request({
  method: 'POST',
  url: api + 'connect/',
  data
})
}

export const queryConnect = params => {
return request({
  method: 'GET',
  url: api + 'connect/',
  params
})
}
